package homework02.exercise2;

public class Test {
    public static void main(String[] args) {
        IPC ipc = new IPC("A","1","B","54","999");

        //聚合
        System.out.println(ipc);

        //拆分
        IPC ipc1 = new IPC("A04B  55/56");
        System.out.println("A04B  55/56");
        System.out.println("IPC的部为: " + ipc1.getsection());
        System.out.println("IPC的大类为: " + ipc1.getclass());
        System.out.println("IPC的小类为: " + ipc1.getsubclass());
        System.out.println("IPC的分隔符位置为: " + ipc1.getPos());

        System.out.println("IPC的大组为: " + ipc1.getmaingroup());
        System.out.println("IPC的小组为: " + ipc1.getsubgroup());




    }
}
